package com.skynet.springcloud.rest;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigClientRest {
	@Value("${spring.application.name}")
	public String applicationName;
	
	@Value("${eureka.client.service-url.defaultZone}")
	public String eurekaServers;
	
	@Value("${server.port}")
	public String port;
	
	@RequestMapping("config")
	public String toConfig(){
		String str="applicationName"+applicationName+"        eureka:"+eurekaServers+"    port"+port;
		return str;
	}
}
